﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace WEB.Utils
{
    public class ConfigReader
    {
        public static string getConnstr()
        {
            string connstr = "";
            try
            {
                 connstr = ConfigurationManager.AppSettings["connStr"].ToString();
            }
            catch(Exception e)
            {
                connstr = "错误的连接字符串";
                Console.WriteLine(e.Message);
            }
            return connstr;
        }

    }
}